#include "character.h"

Character::Character(QObject *parent) :
    QObject(parent)
{
}

float Character::x() const
{
    return p_x;
}

float Character::y() const
{
    return p_y;
}

Character::Direction Character::dir() const
{
    return p_dir;
}

bool Character::moving() const
{
    return p_moving;
}

Character::CharType Character::type() const
{
    return p_type;
}

QColor Character::color() const
{
    return p_color;
}

int Character::score() const
{
    return p_score;
}

int Character::kill() const
{
    return p_kill;
}

int Character::death() const
{
    return p_death;
}

int Character::life() const
{
    return p_life;
}

void Character::setX(float x)
{
    p_x = x;
    emit xChanged(p_x);
}

void Character::setY(float y)
{
    p_y = y;
    emit yChanged(p_y);
}

void Character::setDir(Direction dir)
{
    p_dir = dir;
    emit dirChanged(p_dir);
}

void Character::setMoving(bool moving)
{
    p_moving = moving;
    emit movingChanged(p_moving);
}

void Character::setType(Character::CharType type)
{
    p_type = type;
    emit typeChanged(p_type);
}

void Character::setColor(const QColor &color)
{
    p_color = color;
    emit colorChanged(p_color);
}

void Character::setScore(int score)
{
    p_score = score;
    emit scoreChanged(p_score);
}

void Character::setKill(int kill)
{
    p_kill = kill;
    emit killChanged(p_kill);
}

void Character::setDeath(int death)
{
    p_death = death;
    emit deathChanged(p_death);
}

void Character::setLife(int life)
{
    p_life = life;
    emit lifeChanged(p_life);
}
